package frame.options.virtual.create;

import com.nexes.wizard.WizardPanelDescriptor;


public class CreateVirtualFinishDescriptor extends WizardPanelDescriptor
{
	public static final String IDENTIFIER = CreateVirtualFinishDescriptor.class.getSimpleName();
	
	private CreateVirtualFinishPanel createVirtualFinishPanel;
	public CreateVirtualFinishPanel getCreateVirtualFinishPanel(){ return createVirtualFinishPanel; }
	public void setCreateVirtualFinishPanel( CreateVirtualFinishPanel createVirtualFinishPanel ){ this.createVirtualFinishPanel = createVirtualFinishPanel; }
	
	public CreateVirtualFinishDescriptor()
    {
		this.setCreateVirtualFinishPanel( new CreateVirtualFinishPanel() );
		
		this.setPanelDescriptorIdentifier( CreateVirtualFinishDescriptor.IDENTIFIER );
    	this.setPanelComponent( this.getCreateVirtualFinishPanel() );
    }
    
    @Override
	public Object getBackPanelDescriptor()
    {
    	return CreateVirtualSelectDescriptor.IDENTIFIER;
    }
    
    @Override
	public Object getNextPanelDescriptor()
    {
    	return FINISH;
    }
    
    @Override
	public void aboutToDisplayPanel()
    {
    	this.getWizard().setNextFinishButtonEnabled( true );
    }
    
	public void aboutToHidePanel(){ }
    
}